package xx.rabbitmq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

import static xx.rabbitmq.conf.FaoutRabbitConfig.FAOUT_A;

@Component
@RabbitListener(queues = FAOUT_A)
public class FaoutAReceiver {
    @RabbitHandler
    public void process(Map testMessage) {
        System.out.println("FaoutBeceiver消费者收到消息  : " + testMessage.toString());
    }
}
